home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / GameKit / Headers / gamekit / HighScoreProtocol.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  40 lines

  1. // high score server and client protocols
  2. #import <appkit/appkit.h>
  3.  
  4. @protocol HighScoreClient
  5.  
  6. - (oneway)cantBeServed;
  7. - (oneway)sendGameInfoTo:(bycopy in id)aString;
  8. - (oneway)sendSlotCode; // Not yet implemented.
  9. - (oneway)acceptTable:(bycopy in id)aTable name:(bycopy in id)aString;
  10. - (oneway)addSlot:(bycopy in id)aSlot tableName:(bycopy in id)aString;
  11. - (oneway)removeSlotAt:(in int)i tableName:(bycopy in id)aString;
  12. - (oneway)replaceSlotAt:(in int)i with:(bycopy in id)aSlot
  13.         tableName:(bycopy in id)aString;
  14. - password;
  15.  
  16. @end
  17.  
  18. @protocol HighScoreServer
  19.  
  20. // administrivia
  21. - (oneway)setGameInfo:(bycopy in id)info;
  22. - (oneway)addSlotCode:(bycopy in id)code;    // not yet implemented
  23. - (oneway)setTemplate:(bycopy in id)newTemplate;
  24. - (oneway)clientCheckIn:(in id <HighScoreClient>)client;                    
  25. - (oneway)clientDying:(in id <HighScoreClient>)client;
  26.  
  27. // table manipulation
  28. - (oneway)addSlot:(bycopy in id)newSlot
  29.         fromClient:(in id <HighScoreClient>)client;
  30. - (oneway)clearTable:(in id <HighScoreClient>)sender;
  31. - (oneway)deleteSlot:(in int)i client:(in id <HighScoreClient>)sender;
  32. - (oneway)replaceSlot:(in int)i with:(bycopy in id)aSlot
  33.         client:(in id <HighScoreClient>)sender;
  34. - (oneway)lockTable;
  35. - (oneway)unlockTable;
  36. - (const char *)gameName;
  37.  
  38. @end
  39.  
  40.